package com.anysoft.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;
import java.util.Arrays;

/**
 * Created by wwq on 2017/1/19.
 */

@Entity(nameInDb = "t_userInfo")
public class UserBean implements Serializable {
    @Id(autoincrement = true)
    private Long id;
    @Unique
    private String userId;
    private String userName;
    private String sex;
    private String recordIdentNumber;//是否记住证件号码 0:否 1：是
    private String userType;
    private String userImgPath;
    private String token;
    private String fundCustomerNo;
    private boolean isFingerPrintOpen;
    private boolean isGestureOpen;
    private byte[] gesture_salt;
    private String randomGesture;
    private String randomFingerPrint;
    private long lastLoginTime;

    public String getRandomFingerPrint() {
        return this.randomFingerPrint;
    }

    public void setRandomFingerPrint(String randomFingerPrint) {
        this.randomFingerPrint = randomFingerPrint;
    }

    public String getRandomGesture() {
        return this.randomGesture;
    }

    public void setRandomGesture(String randomGesture) {
        this.randomGesture = randomGesture;
    }

    public byte[] getGesture_salt() {
        return this.gesture_salt;
    }

    public void setGesture_salt(byte[] gesture_salt) {
        this.gesture_salt = gesture_salt;
    }

    public boolean getIsGestureOpen() {
        return this.isGestureOpen;
    }

    public void setIsGestureOpen(boolean isGestureOpen) {
        this.isGestureOpen = isGestureOpen;
    }

    public boolean getIsFingerPrintOpen() {
        return this.isFingerPrintOpen;
    }

    public void setIsFingerPrintOpen(boolean isFingerPrintOpen) {
        this.isFingerPrintOpen = isFingerPrintOpen;
    }

    public String getFundCustomerNo() {
        return this.fundCustomerNo;
    }

    public void setFundCustomerNo(String fundCustomerNo) {
        this.fundCustomerNo = fundCustomerNo;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserImgPath() {
        return this.userImgPath;
    }

    public void setUserImgPath(String userImgPath) {
        this.userImgPath = userImgPath;
    }

    public String getUserType() {
        return this.userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Generated(hash = 382830897)
    public UserBean(Long id, String userId, String userName, String sex,
            String recordIdentNumber, String userType, String userImgPath, String token,
            String fundCustomerNo, boolean isFingerPrintOpen, boolean isGestureOpen,
            byte[] gesture_salt, String randomGesture, String randomFingerPrint,
            long lastLoginTime) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.sex = sex;
        this.recordIdentNumber = recordIdentNumber;
        this.userType = userType;
        this.userImgPath = userImgPath;
        this.token = token;
        this.fundCustomerNo = fundCustomerNo;
        this.isFingerPrintOpen = isFingerPrintOpen;
        this.isGestureOpen = isGestureOpen;
        this.gesture_salt = gesture_salt;
        this.randomGesture = randomGesture;
        this.randomFingerPrint = randomFingerPrint;
        this.lastLoginTime = lastLoginTime;
    }

    @Generated(hash = 1203313951)
    public UserBean() {
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userType='" + userType + '\'' +
                ", userImgPath='" + userImgPath + '\'' +
                ", token='" + token + '\'' +
                ", fundCustomerNo='" + fundCustomerNo + '\'' +
                ", isFingerPrintOpen=" + isFingerPrintOpen +
                ", isGestureOpen=" + isGestureOpen +
                ", gesture_salt=" + Arrays.toString(gesture_salt) +
                ", randomGesture='" + randomGesture + '\'' +
                ", randomFingerPrint='" + randomFingerPrint + '\'' +
                '}';
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    public String getRecordIdentNumber() {
        return this.recordIdentNumber;
    }

    public void setRecordIdentNumber(String recordIdentNumber) {
        this.recordIdentNumber = recordIdentNumber;
    }

    public long getLastLoginTime() {
        return this.lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

}
